<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">	
	
	<xsl:include href="../short.xsl" />
	<xsl:include href="../common/form.xsl" />

	<xsl:template match="/data">
		<html>
		
		<head>
			<title>
				<xsl:value-of select="$pageTitle" />
			</title>
			<xsl:call-template name="meta-head" />
			<link rel="stylesheet" href="{$baseURI}/css/forms.css" type="text/css" media="all" />
			<link rel="stylesheet" href="{$baseURI}/css/registration.css" type="text/css" media="all" />
		</head>
		<body>
		
			<xsl:call-template name="logo" />

			<div id="content">
				<xsl:apply-templates select="response" />
				
				<i class="corner-f8-10 tl"></i>
				<i class="corner-f8-10 tr"></i>
				<i class="corner-f8-10 br"></i>
				<i class="corner-f8-10 bl"></i>
			</div>

		</body>
		</html>
	</xsl:template>
	
	<xsl:template match="response">
		<h1>Получение нового пароля</h1>
		
		<xsl:apply-templates select="error" />
		<xsl:apply-templates select="message" />
		
		<xsl:if test="@status != 'ok'">
			<form action="{$baseURI}/users/forgot" method="post">
				<xsl:text>Ваш e-mail: </xsl:text>
				<input type="text" name="email" size="30" />
				<xsl:text> </xsl:text>
				<input type="submit" value="OK" />		
			</form>
		</xsl:if>
	</xsl:template>
	
</xsl:stylesheet>